﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.Model.Service
{
    public  class NicoViewNiconicoTag:NicoViewObservableObject
    {

        public NicoViewNiconicoTag() : this("", false) { }

        public NicoViewNiconicoTag(string tagName, bool islocked)
        {
            this.tagName = tagName;
            this.islocked = islocked;
        }

        private string tagName;
        public string TagName
        {
            get
            {
                return this.tagName;
            }

            set
            {
                this.Set(() => this.TagName, ref this.tagName, value);
            }
        }


        private bool islocked;

        public bool IsLocked
        {
            get 
            { 
                return islocked; 
            }
            set
            {
                this.Set(() => this.IsLocked, ref this.islocked, value);
            }
        }

        public bool IsEnabled()
        {
            return this.TagName.Length > 0;
        }
    }
}
